package it.uai.domainsMigrator;

import javax.mail.PasswordAuthentication;

public class SMTPAuthenticator extends javax.mail.Authenticator {
	
	private String username;
	private String password;
	
	public SMTPAuthenticator(String username, String password){
		this.username = username;
		this.password = password;	
	}
	
    public PasswordAuthentication getPasswordAuthentication() {
    	
    	return new PasswordAuthentication(username, password);
 
    }
}
